import { createApp } from 'vue'
import App from '@/App.vue'

// 获取应用实例对象
const app = createApp(App)


import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css'
//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
app.use(ElementPlus, {
    locale: zhCn
})
// 引入自定义插件对象:注册整个项目全局组件
import gloalComponent from '@/components/index.ts'
// 安装自定义插件
app.use(gloalComponent)

app.mount('#app')
